package com.example.mvvm.ui.my

import android.util.Log
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.example.mvvm.R
import com.example.mvvm.data.model.place.City
import com.example.mvvm.databinding.ItemproBinding

class CityAdapter : BaseQuickAdapter<City, BaseDataBindingHolder<ItemproBinding>>(R.layout.itempro) {
    override fun convert(holder: BaseDataBindingHolder<ItemproBinding>, item: City) {
        Log.e("wodepp", "走过了")
        holder.dataBinding?.let {
            it.tvName.text = item.cityName
            it.executePendingBindings()
        }?:let {
            Log.e("wodepp", "?????????")
        }
    }

}

